import axios from '@/libs/api.request'

/**
 * 货架列表
 * */
export const cabinetList = (data) => {
  return axios.request({
    url: '/queryCommonShelf',
    data,
    method: 'post'
  })
}

/**
 * 添加货架
 * */
export const addCabinet = (data) => {
  return axios.request({
    url: '/addCommonShelfInfo',
    data,
    method: 'post'
  })
}

/**
 *货架格 规格
 * */
export const getSelect = data => {
  return axios.request({
    url: '/queryShelfFormat',
    data,
    method: 'post'
  })
}

/**
 * 根据货架格id查询详细信息
 * */
export const getShelfInfo = data => {
  return axios.request({
    url: '/queryCommonShelfById',
    data,
    method: 'post'
  })
}

/**
 * 修改货架信息
 * */
export const amendShelf = data => {
  return axios.request({
    url: '/updCommonShelf',
    data,
    method: 'post'
  })
}

/**
 * 修改货架信息
 * */
export const delShelf = data => {
  return axios.request({
    url: '/delShelfInfo',
    data,
    method: 'post'
  })
}

/**
 * 查询货架 格信息
 * */
export const getLatticsList = data => {
  return axios.request({
    url: '/queryLattics',
    data,
    method: 'post'
  })
}

/**
 * 修改货架格信息
 * */
export const amendLattics = data => {
  return axios.request({
    url: '/updLatticeInfo',
    data,
    method: 'post'
  })
}
